<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="ajax" uri="javawebparts/ajaxparts/taglib"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<s:form theme="simple" method="post" action="updateOwnerDetails.htm" id="form">
	<table width="100%">
		<tbody>
			<tr>
				<td height="40" class="sectionheading bottom-border">
					Owner Details
				</td>
			</tr>

			<tr>
				<td>
					<table class="verdana12blacknormal" width="100%">
						<tbody>
							<tr align="left">
								<td>
									<s:actionerror cssClass="note-red" />
									<s:actionmessage cssClass="note-red" />
									<s:fielderror cssClass="note-red" />
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Name:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.name" theme="simple"></s:textfield>
									<s:hidden name="adminDetails.id" value="%{adminDetails.id}"></s:hidden>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Address:
								</td>
								<td>
									<s:textarea cssClass="Textfiled-border" name="adminDetails.address" theme="simple" rows="7" cols="50"></s:textarea>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Country:
								</td>
								<td>
									<s:select theme="simple" cssClass="textfield" name="adminDetails.country"
										headerValue="Select Country" headerKey="0" id="country"
										list="countryList" listKey="categoryId"
										listValue="categoryName"></s:select>
									<ajax:event ajaxRef="OwnerDetails/showStateChange" />
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									State:
								</td>
								<td>
									<div id="state">
										<s:select theme="simple"
											name="adminDetails.state"
											cssClass="textfield" headerKey="0" headerValue="Select State"
											value="%{adminDetails.state}"
											list="stateList" listKey="categoryId" listValue="categoryName" />
									</div>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									City:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.city" theme="simple"></s:textfield>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									VAT-ID Nr.:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.vatIdNr" theme="simple"></s:textfield>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Telephone No.:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.phoneNo" theme="simple"></s:textfield>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Fax No.:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.faxNo" theme="simple"></s:textfield>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Email:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.email" theme="simple"></s:textfield>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									Bank Detail:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.bankDetail" theme="simple"></s:textfield>
								</td>
							</tr>
							<tr>
								<td align="right" class="verdana12blacknormal">
									VAT Amount Percentage:
								</td>
								<td>
									<s:textfield cssClass="Textfiled-border" name="adminDetails.vatAmtPercentage" theme="simple"></s:textfield>
								</td>
							</tr>

							<tr>
								<td colspan="2" align="center">
									<s:submit type="image" src="../Admin-Images/save-chagnes-button.gif" />
									<img style="cursor: pointer;"
										onclick="document.getElementById('form').reset();"
										src="../Admin-Images/reset-button.gif" alt="Reset">
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
		<ajax:enable />
	</table>
</s:form>